import Person  # 此时的Person是一个moudle


class Teacher(Person.Person):

    def __init__(self, name, age, gender):
        super().__init__(name, age)
        self.gender = gender

    # 方法重写
    def info(self):
        super().info()
        print(f"gender:{self.gender}")


teacher1 = Teacher("AAAAA", 30, "女")
teacher1.info()
print(dir(teacher1))






# python 多态，即实例对象的向上转型
